﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;

namespace QLBH.Models
{
    public class OrdersDetailModel :ModelBase
    {
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private int good_id;

        public int Good_id
        {
            get { return good_id; }
            set { good_id = value; }
        }

        private int number;

        public int Number
        {
            get { return number; }
            set { number = value; }
        }
        private float import_price;

        public float Import_price
        {
            get { return import_price; }
            set { import_price = value; }
        }
        private float tax;

        public float Tax
        {
            get { return tax; }
            set { tax = value; }
        }
        private float discount;

        public float Discount
        {
            get { return discount; }
            set { discount = value; }
        }
        private String comments;

        public String Comments
        {
            get { return comments; }
            set { comments = value; }
        }
        private int order_id;

        public int Order_id
        {
            get { return order_id; }
            set { order_id = value; }
        }
         public OrdersDetailModel()
        { 
        }
         //public override NameValueCollection PrepareValue()
         //{
         //    NameValueCollection data = new NameValueCollection();
         //    data.Add("order_number", this.Order_number.ToString());
         //    data.Add("warehouse_id", this.Warehouse_id.ToString());
         //    data.Add("user_id", this.User_id.ToString());
         //    data.Add("total_money", this.Total_money.ToString());
         //    data.Add("status", this.Status);
         //   // List<OrdersDetailModel> model = new List<OrdersDetailModel>();
         //    // foreach (var item in model)
         //    // {
         //    data.Add("good_id", this.Good_id.ToString());
         //    data.Add("import_price", this.Import_price.ToString());
         //    data.Add("number", this.Number.ToString());
         //    data.Add("tax", this.Tax.ToString());
         //    data.Add("discount", this.Discount.ToString());
         //    data.Add("comments", this.Comments.ToString());
         //    // }
         //    return data;
         //}
    }
}
